package com.uhb.base.util;

/**
 * @author CHQ
 * @date 2019-11-25
 * @description 报表执行状态值以及失败原因
 */
public enum ReportStatus {
    ZXSB("ZXSB", "sql执行失败"),
    DDCS("DDCS", "报表执行等待超时"),
    DRCS("DRCS", "等待数据源同步超时"),
    DRSB("DRSB", "数据源同步失败");

    private String status;
    private String failedMsg;

    ReportStatus(String status, String failedMsg) {
        this.status = status;
        this.failedMsg = failedMsg;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getFailedMsg() {
        return failedMsg;
    }

    public void setFailedMsg(String failedMsg) {
        this.failedMsg = failedMsg;
    }

    @Override
    public String toString() {
        return "ReportStatus{" +
                "status='" + status + '\'' +
                ", failedMsg='" + failedMsg + '\'' +
                '}';
    }
}
